/*/
				var wnd,
                    detailsTemplate;
                $(document).ready(function() {
					
					var dataDinhMuc = new kendo.data.DataSource({
						transport: {
							read: "dutoan/dinhmuc/fetch.php",	
						},
						
						schema: {
							data: "data",
							model: modelDinhMuc,	
						}
						
					
					});
					var gridDinhMuc = $("#dinhmuc").kendoGrid({
						dataSource: dataDinhMuc,
						selectable: "cell",
						//rowTemplate: kendo.template($("#rowTemplateDinhMuc").html()),
						//
						columns: [
						{
							field: "cid",
							title: "cid",	
							width: 90,
						},
						{
							field: "MHDM",
							title: "MHDM",	
							width: 90,
						},
						{
							field: "TenCV",
							title: "Ten Cong Viec",	
						},
						{
							field: "DVT",
							title: "DVT",
							width: 90,	
						},
						{ command: { text: "View Details", click: xemchitiet }, title: "Xem", width: "130px" }   
						],
						//
						filterable: true,
						change: onChange,
						
						
                        
					}).data("kendoGrid");
					
					function onChange(arg) {
						var HMid = this.select().data("cid");
						var selected = $.map(this.select(), function(item) {
							return $(item).text();
						});
						var selection = dataDinhMuc.get(selected);
						alert(selection.get("DVT"));
						//alert("Selected: " + selected.length + " item(s), [" + selected.join(", ") + "]");
                	}
					
					wnd = $("#details")
                        .kendoWindow({
                            title: "Chi Tiet",
                            modal: false,
                            visible: false,
                            resizable: false,
                            width: 500,
							
                        }).data("kendoWindow");

                    detailsTemplate = kendo.template($("#template_dinhmuc").html());
                
					
                    var window = $("#window"),
                        undo = $("#undo")
                                .bind("click", function() {
									alert("");
                                    window.data("kendoWindow").open();
                                    undo.hide();
                                });
					
					

                    var onClose = function() {
                        undo.show();
                    }

                    if (!window.data("kendoWindow")) {
                        window.kendoWindow({
                            width: "800px",
							height: "700px",
                            title: "Công tác dịnh mức",
                            close: onClose
                        });
                    }
					window.data("kendoWindow").close();
                });
            /*/